import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public Creature getCreature(){
        return new Cat();
    }

    @Bean
    public People getPeople(){
        return new People();
    }
}
